package nl.justobjects.pushlet.client;

import java.util.concurrent.Callable;

import nl.justobjects.pushlet.core.Event;

public abstract class PushletClientCallBack implements Callable<Void> {

	private Event event;
	
	public void setEvent(Event event) {
		this.event = event;
	}

	public abstract void onEvent(Event event);
	
	@Override
	public Void call() throws Exception {
		onEvent(event);
		return null;
	}
	
}
